package com.openingedu.mba.entity;

import java.util.List;

import com.j256.ormlite.dao.ForeignCollection;
import com.openingedu.mba.persist.DbPaper;
import com.openingedu.mba.persist.DbQuestionSeckill;


public class PaperVO {

	/** 试卷ID **/
	private Integer paperID;
	/** 试卷标题 **/
	private String paperTitle;
	/** 试卷描述 **/
	private String paperDesc;
	private Integer questionNum;
	/** 试卷序号 **/
	private String paperSerial;
	/** 试卷类型ID **/
	private Integer paperType;
	/** 试卷类型名称 **/
	private String paperTypeTitle;
	/** 试卷价格 **/
	private Double paperPrice;
	/** 试卷版本号 **/
	private Integer paperVersion;
	/** 试卷状态 **/
	private Integer paperStatus;
	/** 是否支付成功 **/
	private boolean paid;
	/** 是否下载完成 **/
	private boolean downloaded;
	
	List<PaperQuestionVO> paperQuestionList;
	
	public PaperVO() {
		
	}
	
	public PaperVO (DbPaper dbPaper) {
		setPaperID(dbPaper.getPaperID());
		setPaperDesc(dbPaper.getPaperDesc());
		setPaperPrice(dbPaper.getPaperPrice());
		setPaperSerial(dbPaper.getPaperSerial());
		setPaperStatus(dbPaper.getPaperStatus());
		setPaperTitle(dbPaper.getPaperTitle());
		setPaperType(dbPaper.getPaperType());
		setPaperTypeTitle(dbPaper.getPaperTypeTitle());
		setPaperVersion(dbPaper.getPaperVersion());
	}
	
	public Integer getPaperID() {
		return paperID;
	}
	public void setPaperID(Integer paperID) {
		this.paperID = paperID;
	}
	public String getPaperTitle() {
		return paperTitle;
	}
	public void setPaperTitle(String paperTitle) {
		this.paperTitle = paperTitle;
	}
	public String getPaperDesc() {
		return paperDesc;
	}
	public void setPaperDesc(String paperDesc) {
		this.paperDesc = paperDesc;
	}
	public String getPaperSerial() {
		return paperSerial;
	}
	public void setPaperSerial(String paperSerial) {
		this.paperSerial = paperSerial;
	}
	public Integer getPaperType() {
		return paperType;
	}
	public void setPaperType(Integer paperType) {
		this.paperType = paperType;
	}
	public String getPaperTypeTitle() {
		return paperTypeTitle;
	}
	public void setPaperTypeTitle(String paperTypeTitle) {
		this.paperTypeTitle = paperTypeTitle;
	}
	public Double getPaperPrice() {
		return paperPrice;
	}
	public void setPaperPrice(Double paperPrice) {
		this.paperPrice = paperPrice;
	}
	public Integer getPaperVersion() {
		return paperVersion;
	}
	public void setPaperVersion(Integer paperVersion) {
		this.paperVersion = paperVersion;
	}
	public Integer getPaperStatus() {
		return paperStatus;
	}
	public void setPaperStatus(Integer paperStatus) {
		this.paperStatus = paperStatus;
	}
	public boolean isPaid() {
		return paid;
	}
	public void setPaid(boolean paid) {
		this.paid = paid;
	}
	public boolean isDownloaded() {
		return downloaded;
	}
	public void setDownloaded(boolean downloaded) {
		this.downloaded = downloaded;
	}
	
	public List<PaperQuestionVO> getPaperQuestionList() {
		return paperQuestionList;
	}
	public void setPaperQuestionList(List<PaperQuestionVO> paperQuestionList) {
		this.paperQuestionList = paperQuestionList;
	}
	
	
	
	public Integer getQuestionNum() {
		return questionNum;
	}

	public void setQuestionNum(Integer questionNum) {
		this.questionNum = questionNum;
	}

	@Override
	public String toString() {
		return "PaperVO [paperID=" + paperID + ", paperTitle=" + paperTitle
				+ ", paperDesc=" + paperDesc + ", paperSerial=" + paperSerial
				+ ", paperType=" + paperType + ", paperTypeTitle="
				+ paperTypeTitle + ", paperPrice=" + paperPrice
				+ ", paperVersion=" + paperVersion + ", paperStatus="
				+ paperStatus + ", paid=" + paid + ", downloaded=" + downloaded
				+ "]";
	}
}
